home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
wfc007.000
/
include
/
lzfile.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-08
|
1KB
|
52 lines
#if ! defined( DATA_DECOMPRESSION_CLASS_HEADER )
/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/
#define DATA_DECOMPRESSION_CLASS_HEADER
class CLZFile : public CDummyFile
{
private:
void m_Initialize( void );
protected:
INT m_LZFileHandle;
COFStruct m_OpenFileStructure;
public:
CLZFile();
/*
** Destructor should be virtual according to MSJ article in Sept 1992
** "Do More with Less Code:..."
*/
virtual ~CLZFile();
static void __stdcall TranslateErrorCode( int error_code, CString& error_message );
/*
** The Win32 API
*/
virtual void Close( void );
virtual BOOL Copy( const CLZFile& source );
virtual BOOL Copy( const CLZFile *source );
virtual BOOL GetExpandedName( LPTSTR name_of_compressed_file, CString& original_file_name );
virtual BOOL Open( const char *channel_name, UINT style = OF_READ, CFileException* pError = NULL );
virtual UINT Read( void* buffer, UINT size_of_buffer );
virtual LONG Seek( LONG offset, UINT from );
};
#endif // DATA_DECOMPRESSION_CLASS_HEADER